import axios, { AxiosRequestConfig, AxiosResponse } from "axios";


//请求拦截
axios.interceptors.request.use((config: AxiosRequestConfig) => {

  return config;
});
//响应拦截
axios.interceptors.response.use(
  (config: AxiosResponse<any>) => {
    //结束

    return config;
  },
  (err) => {

    return Promise.reject(err);
  }
);
export default axios